package com.flin.icesilkworm.examination.bas.constant;

import com.flin.icesilkworm.examination.gen.bas.constant.GeneratedTheTakeExamConstant;
import com.flin.icesilkworm.framework.jdbc.objects.StringAttribute;

import java.util.Map;
/**
 *
 *
 *
 */
public interface ITheTakeExamConstant extends GeneratedTheTakeExamConstant{
	
	public final StringAttribute [] ACTI_FETCH_LIST = {
			MAX_SCORE,PAGE_SCORE,TAKE_ID,
			START_TAKE_TIME,END_TAKE_TIME,SUBMIT_TIME,TAKE_STATUS,TOTAL_SCORE
	};

	public static String getText(String key, String status) {
		
		Map<String,String> textMap = OPTION_MAPS.get(key);
		
		if(textMap == null){return key + "." + status;}
		
		return textMap.get(status);
	}	

}
